﻿<UserControl x:Class="FM.录音.Views.任务编辑视图"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:viewModels="clr-namespace:FM.录音.ViewModels"
             d:DataContext="{d:DesignInstance Type={x:Type viewModels:任务编辑视图ViewModel}}"
             d:DesignHeight="300"
             d:DesignWidth="400"
             mc:Ignorable="d">
    <UserControl.Resources />
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="22*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <telerik:RadPropertyGrid Grid.Row="1"
                                 Grid.Column="0"
                                 Margin="2,0"
                                 AutoGeneratePropertyDefinitions="False"
                                 IsGrouped="True"
                                 Item="{Binding Model}"
                                 LabelColumnWidth="120">

            <telerik:RadPropertyGrid.PropertyDefinitions>
                <telerik:PropertyDefinition Binding="{Binding 名称}"
                                            Description="修改任务名称"
                                            DisplayName="名称"
                                            GroupName="基本" />

                <telerik:PropertyDefinition Binding="{Binding 日期}"
                                            Description="任务开始执行的日期"
                                            DisplayName="日期"
                                            GroupName="基本" />
                <telerik:PropertyDefinition Binding="{Binding 星期}"
                                            Description="任务执行的星期"
                                            DisplayName="星期"
                                            GroupName="基本" />
                <telerik:PropertyDefinition Binding="{Binding 循环}"
                                            Description="任务执行的循环方式"
                                            DisplayName="循环"
                                            GroupName="基本" />


            </telerik:RadPropertyGrid.PropertyDefinitions>
        </telerik:RadPropertyGrid>
        <!--<telerik:RadPropertyGrid Grid.Row="1"
                                 Grid.Column="1"
                                 Margin="2,0"
                                 AutoGeneratePropertyDefinitions="True"
                                 Item="{Binding Model.定时录音任务}"
                                 LabelColumnWidth="108" />-->
    </Grid>
</UserControl>
